import http from '/@/utils/request'


/**
 * 新增治具信息
 */
export const addFixtures = (data) => {
    return http.request({
        url: '/fixtures/add',
        method: 'post',
        data
    })
}
/**
 * 查询治具信息列表
 */
export const listFixtures = (query) => {
    return http.request({
        url: '/fixtures/list',
        method:'get',
        params:query
    })
}

/**
 * 查询治具二维码列表
 */
export const getFixturesQr = (id) => {
    return http.request({
        url: '/fixtures/list'+id,
        method:'get'
    })
}

/**
 * 修改治具信息
 */
export const updateFixtures = (data) => {
    return http.request({
        url: '/fixtures/update',
        method: 'put',
        data
    })
}

/**
 * 删除治具信息
 */
export const delFixtures = (data) => {
    return http.request({
        url: '/fixtures/delete',
        method: 'put',
        data
    })
}
